package com.danjinwulian.common.core.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.danjinwulian.common.annotation.Excel;
import com.danjinwulian.common.core.domain.BaseEntity;

/**
 * 住客对象 iot_tenant
 * 
 * @author ken.h
 * @date 2022-08-23
 */
public class IotTenant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 住客id */
    private Long tenantId;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 微信公众号OpenID */
    @Excel(name = "微信公众号OpenID")
    private String gzhopenid;

    /** 微信小程序OpenID */
    @Excel(name = "微信小程序OpenID")
    private String xcxopenid;

    /** 微信UnionID */
    @Excel(name = "微信UnionID")
    private String unionid;

    /** 微信头像 */
    @Excel(name = "微信头像")
    private String avatar;

    /** 微信昵称 */
    @Excel(name = "微信昵称")
    private String nickname;

    /** 设备MAC */
    @Excel(name = "设备MAC")
    private String deviceMac;

    /** 设备IP */
    @Excel(name = "设备IP")
    private String deviceIp;

    /** 换取openid的code */
    private String loginCode;

    @Excel(name = "公寓名称")
    private String hotelName;

    @Excel(name = "房间名称")
    private String roomName;

    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setGzhopenid(String gzhopenid) 
    {
        this.gzhopenid = gzhopenid;
    }

    public String getGzhopenid() 
    {
        return gzhopenid;
    }
    public void setXcxopenid(String xcxopenid) 
    {
        this.xcxopenid = xcxopenid;
    }

    public String getXcxopenid() 
    {
        return xcxopenid;
    }
    public void setUnionid(String unionid) 
    {
        this.unionid = unionid;
    }

    public String getUnionid() 
    {
        return unionid;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }

    public String getDeviceMac() {
        return deviceMac;
    }

    public void setDeviceMac(String deviceMac) {
        this.deviceMac = deviceMac;
    }

    public String getDeviceIp() {
        return deviceIp;
    }

    public void setDeviceIp(String deviceIp) {
        this.deviceIp = deviceIp;
    }

    public String getLoginCode() {
        return loginCode;
    }

    public void setLoginCode(String loginCode) {
        this.loginCode = loginCode;
    }

    public String getHotelName() {
        return hotelName;
    }

    public void setHotelName(String hotelName) {
        this.hotelName = hotelName;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tenantId", getTenantId())
            .append("deviceId", getDeviceId())
            .append("gzhopenid", getGzhopenid())
            .append("xcxopenid", getXcxopenid())
            .append("unionid", getUnionid())
            .append("avatar", getAvatar())
            .append("nickname", getNickname())
            .append("deviceMac", getDeviceMac())
            .append("deviceIp", getDeviceIp())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
